package com.ruicar.afs.cloud.channel.blacklist.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.channel.blacklist.entity.BlacklistTemp;
import com.ruicar.afs.cloud.channel.blacklist.mapper.BlacklistTempMapper;
import com.ruicar.afs.cloud.channel.blacklist.service.BlacklistTempService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Ice
 * @Date 2020/05/27
 */
@Slf4j
@Service
@AllArgsConstructor
public class BlacklistTempImpl extends ServiceImpl<BlacklistTempMapper, BlacklistTemp> implements BlacklistTempService {

    @Override
    public List<Long> getBlackListIds(String userName, String key, String relieve) {
        return baseMapper.getBlackListIds(userName, key, relieve);
    }

    @Override
    public IPage<List<BlacklistTemp>> getRegister(Page page, String blackName, String blacklistType, String carDealers, String idCode, String userName, String key) {
        return baseMapper.getRegister(page, blackName, blacklistType, carDealers, idCode, userName, key);
    }

}
